package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.trade.item.convert.SkuConvert;
	import com.wind.taobao.api.trade.item.model.Sku;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.item.sku.get Response
	 * @author fxy
	 *
	 */
	public class ItemSkuGetResponse extends TaobaoResponse
	{
		public var sku:Sku;

		public function ItemSkuGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initSku();
		}

		private function initSku():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("sku"))
				{
					sku=SkuConvert.convertSku(body["rsp"]["sku"]);
				}
			}
		}
	}
}